﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using ZoneFiveSoftware.Common.Visuals;
using ZoneFiveSoftware.Common.Visuals.Fitness;
using SportTracksPluginFramework;

namespace DistributionPlugin.View
{
    class DistributionActivityDetailExtension : STFrameworkActivityDetailPagesExtension
    {
        public DistributionActivityDetailExtension()
        {
            Debug.Assert(m_Instance == null);

            m_Instance = this;
        }

#region STFrameworkActivityDetailPagesExtension members

        public override IList<STFrameworkDetailPage> CreateActivityDetailPageInstances(IDailyActivityView view)
        {
            List<STFrameworkDetailPage> detailPages = new List<STFrameworkDetailPage>();

            DistributionDetailsPage activityDetailPage = new DistributionDetailsPage(view);

            detailPages.Add(activityDetailPage);

            return detailPages;
        }

#endregion

        private static DistributionActivityDetailExtension m_Instance = null;
    }
}
